package org.example.domain;

import java.util.List;

/**
 * @author Jimmy
 * @version 1.0
 */
public class Dept {
    private String deptId;
    private String deptname;
    private String pid;
    private int state;
    private List<Dept> children;

    public Dept() {
    }

    public Dept(int state) {
        this.state = state;
    }

    public Dept(String deptId, String deptname, String pid) {
        this.deptId = deptId;
        this.deptname = deptname;
        this.pid = pid;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getDeptname() {
        return deptname;
    }

    public void setDeptname(String deptname) {
        this.deptname = deptname;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public List<Dept> getChildren() {
        return children;
    }

    public void setChildren(List<Dept> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "deptId='" + deptId + '\'' +
                ", deptname='" + deptname + '\'' +
                ", pid='" + pid + '\'' +
                ", state=" + state +
                ", children=" + children +
                '}';
    }
}
